﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers.windows.standard {
    import net.wooga.pets.events.windows.*;
    import net.wooga.pets.controllers.windows.*;

    public class DestroyStandardWindowCommand extends WindowCommand {

        private static const VIEW_SUCCESFULLY_REMOVED:Boolean = true;

        override public function execute():void{
            if (windowsModel.removeWindowViewFromQue(windowToRemove) == VIEW_SUCCESFULLY_REMOVED){
                this.eventDispatcher.dispatchEvent(new WindowsMainViewUpdateEvent(WindowsMainViewUpdateEvent.REMOVE_STANDARD_WINDOW, windowToRemove));
                this.checkForNextWindow();
            };
        }
        private function checkForNextWindow():void{
        }

    }
}//package net.wooga.pets.controllers.windows.standard 
